package org.dxy.api.dto.request.mbom;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * 创建MBOM请求DTO
 * @author dxy
 * @createTime 2025/9/10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CreateMBOMRequest {
    
    /** MBOM编码 */
    @NotBlank(message = "MBOM编码不能为空")
    private String mbomCode;
    
    /** MBOM名称 */
    @NotBlank(message = "MBOM名称不能为空")
    private String mbomName;
    
    /** 产品ID */
    @NotNull(message = "产品ID不能为空")
    private Long productId;
    
    /** 版本号 */
    @NotBlank(message = "版本号不能为空")
    private String version;
}